<div class="findtrs">
	<form action="" class="layui-inline layui-form" method="post" style="width: 100%">
		{include file="cards/card_info_header"/}
		<div class="fremittanpred fbai" style="height: 450px;">
			{include file="cards/card_info_menu"/}
			<div class="list" style="padding-bottom: 100px;">
				<div class="txt">
					<p>请确认您是否要取消这张卡 . 一旦您确认，您的卡将立即终止. 这是无法挽回的.</p><br />
					<p style="color: red;font-weight: bold;font-size: 25px;">卡片余额会退回到账户余额.</p>
				</div>
			</div>
			<input type="hidden" value="{$card_id}" name="card_id">
			<input type="hidden" value="del" name="type">
			<div class="fbottonlst" style="float: left">
				<ul>
					<li class="on">
						<input type="button" class="fsubmit" lay-submit lay-filter="edit" style="float: left" value="提 交" >
					</li>
					<li><a href="{:url('cards/cardList')}">返回</a></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	layui.use(['form'], function () {
		var form = layui.form;
		form.on('submit(edit)', function(data){
			layer.confirm('确认删除么?', {
				title:'删开' , btn: ['确认', '放弃'], //按钮
			}, function () {
				var loading =layer.load(1, {shade: [0.1,'#fff']});
				JsPost("{:url('cards/cardAction')}", data.field, function(res){
					layer.close(loading);
					if(res.code >0){
						layer.msg(res.msg, {time:1500}, function(){
							window.location.reload();
							//window.location.href = "{:url('cardList')}";
						});
					}else{
						layer.msg(res.msg , {time:1500});
					}
				})
			}, function () {
				layer.close(1);
			});
		});
	});
</script>